def is_prime(num):
    """
    判断一个数是不是素数
    :param num:
    :return:
    """
    for i in range(2, num // 2 + 1):  # 遍历 2 - num/2
        if num % i == 0:
            return False
    else:
        return True


# 一个数 如果能被整除
# a*b = c   16
#     a+b  2*8    4*4

# for i in range(101, 200, 2):
#     if is_prime(i):
#         print(i, is_prime(i))


def is_ok(num):
    """
    100-200之间的素数
    :param num:
    :return:
    """
    bai = int(str(num)[0])
    shi = int(str(num)[1])
    ge = int(str(num)[2])

    return (ge + shi) % 10 == bai

if __name__ == '__main__':


    # for i in range(101, 1000, 2):
    #     if is_prime(i) and is_ok(i):
    #         print(i, end=' ')
    # x = 2+9*((3*12)-8)//10
    # print(x)
    a = [[1,2,3],[4,5,6],[7,8,9]]
    s=0
    for c in a:
        for j in range(3):
            s+=c[j]
    print(s)